package com.witdata.common.mapper;

import com.witdata.common.domain.dto.CodeContentDto;
import com.witdata.common.domain.dto.CodeDto;
import com.witdata.mysql.domain.entity.TCodeContent;
import com.witdata.mysql.domain.entity.TUserCode;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface CodeMapper {

    CodeMapper INSTANCE = Mappers.getMapper(CodeMapper.class);

    CodeDto toCodeDto(TUserCode tUserCode);

    TCodeContent toTCodeContent(CodeContentDto codeContentDto);

    CodeContentDto toCodeContentDto(TCodeContent tCodeContent);
}
